import request from '@/utils/request'

export function listpartmrkHead(query) {
  return request({
    url: '/part/partmrkHead/list',
    method: 'get',
    params: query
  })
}

export function createpartmrkHead(data) {
  return request({
    url: '/part/partmrkHead/create',
    method: 'post',
    data
  })
}

export function readpartmrkHead(data) {
  return request({
    url: '/part/partmrkHead/get/' + data.id,
    method: 'get'
  })
}

export function updatepartmrkHead(data) {
  return request({
    url: '/part/partmrkHead/update',
    method: 'post',
    data
  })
}

export function deletepartmrkHead(data) {
  return request({
    url: '/part/partmrkHead/delete/' + data.fbillno,
    method: 'delete'
  })
}
